#ifndef __LCD_H
#define __LCD_H

 #include <stdio.h>
 #include <stdlib.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <unistd.h>
 #include <sys/ioctl.h>
 #include <sys/mman.h>
 #include <linux/fb.h>
 #include "define_config.h"
#include <string.h>
#include "lcd_bmp.h"


 // 移除static修饰符，改为extern声明
 extern int width;                   
 extern int height;                     
 extern unsigned short *screen_base;  // 移除static
 extern unsigned int screen_size;
 static void lcd_fill(unsigned int start_x, unsigned int end_x,
             unsigned int start_y, unsigned int end_y,
             unsigned int color);
static void lcd_draw_rectangle(unsigned int start_x, unsigned int end_x,
             unsigned int start_y, unsigned int end_y,
             unsigned int color);
 static void lcd_draw_line(unsigned int x, unsigned int y, int dir,
             unsigned int length, unsigned int color);
static void lcd_draw_point(unsigned int x, unsigned int y, unsigned int color);
void LcdGetInfo(int fd);
// 添加结构体全局声明
extern struct fb_fix_screeninfo fb_fix;
extern struct fb_var_screeninfo fb_var;
extern int line_length;  // 添加行长度声明

#endif

























